<template>
    <el-main>
        <el-main class="ep-body">
			<epl-top-bar :datas="{formData:form,panel:panel}" showPerson personType="PERSON_INJURY_CB" psTagType="PERSON_AAB001_GROUP">
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>
            <el-row :gutter="10">
                <epl-userGeneral dataType="person" idCount="10" :panel="panel">
                </epl-userGeneral>
                <epl-userGeneral dataType="company" idCount="2" :panel="panel">
                </epl-userGeneral>
            </el-row>
 			<el-card class="ep-card">
 		  
 			 <el-form :model="form" ref="form" :rules="rules">
 			   <el-collapse v-model="activeNames">
                   <el-collapse-item title="请录入申请人信息" name="1">
                   <el-card class="ep-card">
                    <el-row :gutter="20">
                        <ep-select colspan="8" label="申请主体" name="alc009" :property="form.alc009" placeholder="请选择申请主体"
                                  p="R" :datas="{formData:form}" codetype="ALC009" ></ep-select>
                        <ep-input colspan="8" label="申请人姓名" name="aac042" :property="form.aac042" placeholder="请输入申请人姓名"
                                  p="R" :datas="{formData:form,panel:panel}" ></ep-input>
						<ep-select colspan="8" label="申请人证件类型" name="bae565" :property="form.bae565" placeholder="请选择申请人证件类型"
                                  p="R" :datas="{formData:form}" codetype="BAE565" ></ep-select>
                     </el-row>
                     <el-row :gutter="20">
						<ep-input colspan="8" label="申请人证件号码" name="aac044" :property="form.aac044" placeholder="请输入申请人证件号码"
                                  p="R" :datas="{formData:form,panel:panel}"  ></ep-input>
						<ep-input colspan="8" label="申请人联系电话" name="acl049" :property="form.acl049" placeholder="请输入申请人联系电话"
                                  p="R" :datas="{formData:form,panel:panel}"   rules="this.$rules.mobile" ></ep-input>
                        <ep-date colspan="8" label="申请日期"  name="aae127" :property="form.aae127"  placeholder=""
                                      p="D" :datas="{formData:form}" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd"></ep-date>                    
                      </el-row>
                     </el-card>
                   </el-collapse-item>
                   <el-collapse-item title="请录入工伤申请信息" name="2">
                    <el-card class="ep-card">
                      <el-row :gutter="20">
						<ep-select colspan="8" label="事故类别" name="ala028" :property="form.ala028" placeholder="请选择事故类别"
                                  p="R" :datas="{formData:form}" codetype="ALA028" ></ep-select>
                         <ep-select colspan="8" label="受伤部位" name="alc022" :property="form.alc022" placeholder="请选择受伤部位"
                                  p="R" :datas="{formData:form}" codetype="ALC022"  ></ep-select>
                        <epl-new-date colspan="8" label="事故时间"  name="sgalc020" :property="form.sgalc020" placeholder="请选择事故时间" 
                                  p="R" :datas="{formData:form}" type="datetime" format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" rules="this.$rules.test_time"></epl-new-date>          
                    </el-row>
                      <el-row :gutter="10">
                                <ep-select colspan="8" label="事故地点" name="bae011" :property="form.bae011"
                                            placeholder="请选择省" codetype="BAE007" p="R"  :datas="{formData:form}" isChange isCodeType></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae012" :property="form.bae012"
                                            placeholder="请选择市" codetype="BAE008" p="R" :datas="{formData: form}" isChange isCodeType
                                            SelectFilterData=" aaa102 like substr(':bae011',0,2)||'%' and aaa102 like '%00' "></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae013" :property="form.bae013" 
                                            placeholder="请选择区县" codetype="BAE009" p="R" :datas="{formData: form}"
                                            SelectFilterData=" aaa102 like substr(':bae012',0,4)||'%'" ></ep-select>
                                <ep-input colspan="8" label="" label-width="0" name="blb003" :property="form.blb003"
                                            placeholder="请输入详细地址" p="R" :datas="{formData:form}"></ep-input>
                    </el-row>
                    <el-row :gutter="20">
                        <ep-number  colspan="8" label="医疗费用总额(初算)" name="akc264" :property="form.akc264" placeholder="请输入医疗费用总额(初算)"
                                  p="R" :datas="{formData:form}" ></ep-number>
                       <ep-select colspan="8" label="职业(工种)" name="aca111" :property="form.aca111" placeholder="请选择职业(工种)"
                                  p="R" :datas="{formData:form}" codetype="ACA111" ></ep-select>
                     
                    </el-row>
                  <el-row :gutter="20">
                        <ep-textarea colspan="24" label="伤害事件情况" name="alc006" :property="form.alc006" placeholder="请输入伤害事件情况"
                                  p="R" :datas="{formData:form}" rows="3" ></ep-textarea>
                    </el-row>
					<el-row :gutter="20">
                        <ep-textarea colspan="24" label="医疗救治的基本情况和诊断意见" name="blc508" :property="form.blc508" placeholder="请输入医疗救治的基本情况和诊断意见"
                                  p="R" :datas="{formData:form}" rows="3" ></ep-textarea>
                    </el-row>
					<el-row :gutter="20">
                        <ep-select colspan="8" label="诊断机构" name="alc007" :property="form.alc007" placeholder="请选择诊断机构"
                                  p="R" :datas="{formData:form}" codetype="ALC007" ></ep-select>          
                       <ep-date colspan="8" label="诊断日期"  name="aae030" :property="form.aae030" placeholder="请选择诊断日期"
                                      p="R" :datas="{formData:form}" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd" rules="this.$localRules.DateCheck"></ep-date>
                     </el-row>
                   </el-card> 
                 </el-collapse-item>
                 <el-collapse-item title="请录入工伤认定决定" name="3">
                  <el-card class="ep-card">
                   <el-row :gutter="20">
                     <ep-select colspan="8" label="工伤认定结论" name="ala015" :property="form.ala015" placeholder="请选择工伤认定结论"
                                  p="R" :datas="{formData:form}" codetype="ALA015" ></ep-select>
                    <ep-select colspan="8" label="认定依据类别" name="ala016" :property="form.ala016" placeholder="请选择认定依据类别"
                                  p="R" :datas="{formData:form}" codetype="ALA016" ></ep-select>
                    </el-row>
                    <el-row :gutter="20">
                        <ep-textarea colspan="24" label="审核意见" name="blc500" :property="form.blc500" placeholder="请输入审核意见"
                                  p="R" :datas="{formData:form}" rows="3" ></ep-textarea>
                    </el-row>
					<el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" top="20" type="primary" bottom="20" ref="save"
                                      @formValidate="formValidate"
                                       :validate="['form']"
                                       :datas="{formData: form,panel:panel}" name="保存"></ep-saveButton>
                                   
                      </el-row>
                    </el-card> 
                   </el-collapse-item> 
                  </el-collapse>   
                  </el-form>
                </el-card>              
        </el-main>
    </el-main>
</template>

<script src="../js/InjurySimCogRegJS.js"></script>
